﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000CF7 RID: 3319
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PlayBackGroundMusicCsReq : IMessage<PlayBackGroundMusicCsReq>, IMessage, IEquatable<PlayBackGroundMusicCsReq>, IDeepCloneable<PlayBackGroundMusicCsReq>, IBufferMessage
	{
		// Token: 0x170029C9 RID: 10697
		// (get) Token: 0x06009445 RID: 37957 RVA: 0x00189E34 File Offset: 0x00188034
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PlayBackGroundMusicCsReq> Parser
		{
			get
			{
				return PlayBackGroundMusicCsReq._parser;
			}
		}

		// Token: 0x170029CA RID: 10698
		// (get) Token: 0x06009446 RID: 37958 RVA: 0x00189E3B File Offset: 0x0018803B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PlayBackGroundMusicCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170029CB RID: 10699
		// (get) Token: 0x06009447 RID: 37959 RVA: 0x00189E4D File Offset: 0x0018804D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PlayBackGroundMusicCsReq.Descriptor;
			}
		}

		// Token: 0x06009448 RID: 37960 RVA: 0x00189E54 File Offset: 0x00188054
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayBackGroundMusicCsReq()
		{
		}

		// Token: 0x06009449 RID: 37961 RVA: 0x00189E5C File Offset: 0x0018805C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayBackGroundMusicCsReq(PlayBackGroundMusicCsReq other) : this()
		{
			this.playMusicId_ = other.playMusicId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600944A RID: 37962 RVA: 0x00189E81 File Offset: 0x00188081
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayBackGroundMusicCsReq Clone()
		{
			return new PlayBackGroundMusicCsReq(this);
		}

		// Token: 0x170029CC RID: 10700
		// (get) Token: 0x0600944B RID: 37963 RVA: 0x00189E89 File Offset: 0x00188089
		// (set) Token: 0x0600944C RID: 37964 RVA: 0x00189E91 File Offset: 0x00188091
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PlayMusicId
		{
			get
			{
				return this.playMusicId_;
			}
			set
			{
				this.playMusicId_ = value;
			}
		}

		// Token: 0x0600944D RID: 37965 RVA: 0x00189E9A File Offset: 0x0018809A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PlayBackGroundMusicCsReq);
		}

		// Token: 0x0600944E RID: 37966 RVA: 0x00189EA8 File Offset: 0x001880A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PlayBackGroundMusicCsReq other)
		{
			return other != null && (other == this || (this.PlayMusicId == other.PlayMusicId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600944F RID: 37967 RVA: 0x00189ED8 File Offset: 0x001880D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.PlayMusicId != 0U)
			{
				num ^= this.PlayMusicId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009450 RID: 37968 RVA: 0x00189F17 File Offset: 0x00188117
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009451 RID: 37969 RVA: 0x00189F1F File Offset: 0x0018811F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009452 RID: 37970 RVA: 0x00189F28 File Offset: 0x00188128
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.PlayMusicId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.PlayMusicId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009453 RID: 37971 RVA: 0x00189F5C File Offset: 0x0018815C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.PlayMusicId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PlayMusicId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009454 RID: 37972 RVA: 0x00189F9A File Offset: 0x0018819A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PlayBackGroundMusicCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.PlayMusicId != 0U)
			{
				this.PlayMusicId = other.PlayMusicId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009455 RID: 37973 RVA: 0x00189FCB File Offset: 0x001881CB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009456 RID: 37974 RVA: 0x00189FD4 File Offset: 0x001881D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 96U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.PlayMusicId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040038AA RID: 14506
		private static readonly MessageParser<PlayBackGroundMusicCsReq> _parser = new MessageParser<PlayBackGroundMusicCsReq>(() => new PlayBackGroundMusicCsReq());

		// Token: 0x040038AB RID: 14507
		private UnknownFieldSet _unknownFields;

		// Token: 0x040038AC RID: 14508
		public const int PlayMusicIdFieldNumber = 12;

		// Token: 0x040038AD RID: 14509
		private uint playMusicId_;
	}
}
